package com.aspose.cells;

import java.util.Locale;

public class LoadOptions {
   protected int a;
   private String d;
   private boolean e = true;
   private LoadDataOption f;
   private int g = 0;
   private int h = 0;
   private boolean i = true;
   boolean b = false;
   boolean c = false;
   private String j = "Arial";
   private int k = 200;
   private InterruptMonitor l;
   private boolean m = false;
   private boolean n = false;
   private boolean o = true;
   private int p = 65535;
   private LightCellsDataHandler q;
   private int r;

   public int getLoadFormat() {
      return this.a;
   }

   void a(int var1) {
      this.a = var1;
   }

   public LoadOptions() {
      this.r = zml.p;
      this.a = 0;
   }

   public LoadOptions(int loadFormat) {
      this.r = zml.p;
      this.a = loadFormat;
   }

   public String getPassword() {
      return this.d;
   }

   public void setPassword(String value) {
      this.d = value;
   }

   public boolean getParsingFormulaOnOpen() {
      return this.e;
   }

   public void setParsingFormulaOnOpen(boolean value) {
      this.e = value;
   }

   public boolean getLoadDataAndFormatting() {
      return this.p == 1;
   }

   public void setLoadDataAndFormatting(boolean value) {
      if (value) {
         this.p = 1;
      } else {
         this.p = 65535;
      }

   }

   /** @deprecated */
   public boolean getLoadDataOnly() {
      return this.getLoadDataAndFormatting();
   }

   /** @deprecated */
   public void setLoadDataOnly(boolean value) {
      this.setLoadDataAndFormatting(value);
   }

   public boolean getOnlyLoadDocumentProperties() {
      return this.p == 512;
   }

   public void setOnlyLoadDocumentProperties(boolean value) {
      if (value) {
         this.p = 512;
      } else {
         this.p = 65535;
      }

   }

   public LoadDataOption getLoadDataOptions() {
      if (this.f == null) {
         this.f = new LoadDataOption();
      }

      return this.f;
   }

   public void setLoadDataOptions(LoadDataOption value) {
      this.f = value;
   }

   public int getLanguageCode() {
      return this.g;
   }

   public void setLanguageCode(int value) {
      this.g = value;
   }

   public int getRegion() {
      return this.h;
   }

   public void setRegion(int value) {
      this.h = value;
   }

   public Locale getLocale() {
      return com.aspose.cells.a.c.zj.b(this.h);
   }

   public void setLocale(Locale value) {
      this.h = com.aspose.cells.a.c.zj.a(value);
   }

   public boolean getConvertNumericData() {
      return this.i;
   }

   public void setConvertNumericData(boolean value) {
      this.i = value;
   }

   public String getStandardFont() {
      return this.j;
   }

   public void setStandardFont(String value) {
      this.j = value;
      this.b = true;
   }

   public double getStandardFontSize() {
      return (double)((float)(this.k & '\uffff') / 20.0F);
   }

   public void setStandardFontSize(double value) {
      this.k = (int)(value * 20.0D + 0.5D);
      this.c = true;
   }

   public InterruptMonitor getInterruptMonitor() {
      return this.l;
   }

   public void setInterruptMonitor(InterruptMonitor value) {
      this.l = value;
   }

   public boolean getIgnoreNotPrinted() {
      return this.m;
   }

   public void setIgnoreNotPrinted(boolean value) {
      this.m = value;
   }

   boolean a() {
      return this.n;
   }

   public boolean getCheckExcelRestriction() {
      return this.o;
   }

   public void setCheckExcelRestriction(boolean value) {
      this.o = value;
   }

   int b() {
      return this.p;
   }

   void b(int var1) {
      this.p = var1;
   }

   public LightCellsDataHandler getLightCellsDataHandler() {
      return this.q;
   }

   public void setLightCellsDataHandler(LightCellsDataHandler value) {
      this.q = value;
   }

   public int getMemorySetting() {
      return this.r;
   }

   public void setMemorySetting(int value) {
      this.r = value;
   }
}
